package com.starinside.wp.domain.observation;

import com.starinside.wp.domain.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2018/3/15
 * *******************************
 */
@Entity
@Table(name = "observation_new_question_record")
@Data
@EqualsAndHashCode(callSuper = true)
public class ObservationNewQuestionRecord extends Model {

    @Column(columnDefinition = "varchar(32) COMMENT '对应观测点id'")
    private String observationId;

    @Column(columnDefinition = "varchar(1024) COMMENT '问题内容'")
    private String observationQuestion;

    @Column(columnDefinition = "varchar(32) COMMENT '对应选项id'")
    private String optionId;

    @Column(columnDefinition = "varchar(1024) COMMENT '选项'")
    private String optionTitle;

    @Column(columnDefinition = "int default 0 COMMENT '得分'")
    private Integer score;

    @Column(columnDefinition = "longtext comment '资源地址'")
    private String resourceUrl;

    @Column(columnDefinition = "varchar(32) COMMENT '对应观测点记录id'")
    private String observationRecordId;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '是否删除 0：否，1是' ")
    private Boolean deleted = false;
}
